
<!--正文导航-->
<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <meta content="telephone=no" name="format-detection" /> 
        <meta name="google-site-verification" content="DVVM1p1HEm8vE1wVOQ9UjcKP--pNAsg_pleTU5TkFaM">
        <style>
            body > a:first-child,body > a:first-child img{ width: 0px !important; height: 0px !important; overflow: hidden; position: absolute}
            body{padding-bottom: 0 !important;}
        </style>
        <meta id="viewport" name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
        <title>查询成绩</title>
		<link rel="stylesheet" href="{OSSURL}public/mobile/css/weixin.css?{php echo time()}">
        <link rel="stylesheet" href="{OSSURL}public/mobile/css/reset.css?{php echo time()}">
        <script src="{OSSURL}public/mobile/js/jquery.js?{php echo time()}"></script>
</head>
<body>
    <div id="wrap" class="page_search">
        <form id='myform'">
            <section id="main">
                <h2>查询成绩</h2>
                <ul>
                    <li class="teacher_name">
                        <input type="text" placeholder="请输入学生姓名" name ="s_name" id="s_name" />
                        输入学生姓名
                    </li>
                    <li class="teacher_name">
                        <input type="text" placeholder="请输入手机号码" name ="mobile" id="mobile" />
						<input type="hidden" name="schoolid" id="schoolid" value="$schoolid" />
                        输入报名时预留的家长手机 
                    </li>
                    <div class="btn" onclick="checkSubmit()">开始查询</div>
                </ul>
            </section>
        </form>
    </div>
	  {php include $this->template('footer');} 
    <!-- 修改开始 -->
    <script>
        //验证表单提交事件
        function checkSubmit() {
		var s_name = $('#s_name').val();
        var mobile = $('#mobile').val();
        if (s_name == '') {
            alert('请输入学生姓名！');
            return false;
        }
        if (mobile == '') {
            alert('请输入报名时预留的手机号！');
            return false;
        }
        reg=/^(13[0123456789]{1}\d{8}$|^15[1235689]{1}\d{8}$|^18[26789]{1}\d{8})|(0[0-9]{1,3}\-?[0-9]{7,8})$/;	
        if(!reg.test(mobile)){
            alert("错误,请输入11位的手机号！");
            return false;
        }		
//     window.location.href = "{php echo $this->createMobileUrl('chaxun', array('schoolid' => $schoolid, 's_name' => s_name, 'mobile' => mobile), true)}";
	 window.location.href = "{php echo $this->createMobileUrl('chaxun', array('schoolid' => $schoolid), true)}" + "&s_name=" + s_name + "&mobile=" + mobile;
    }	
    </script>
</body>
</html>